<template>
  <div>
    <div class="block">
      <el-carousel height="300px" style="width:1000px;margin:auto" >
        <el-carousel-item v-for="item in urls" :key="item">
          <h3 class="small"><el-image
              id="carouselImg"
              fit="corer"
              :src="item"
              alt="aaa"
            ></el-image></h3>
        </el-carousel-item>
      </el-carousel>
    </div>
  </div>
</template>

<script>
export default {
  data(){
    return {
    urls:[
          'https://img14.360buyimg.com/n0/jfs/t1/17844/17/15243/122782/5caefc2dE7e2bf018/9f5e66749b027602.jpg',
          'https://imgservice.suning.cn/uimg1/b2c/image/O-mv1OXvC0zSxSLtYYxLLg.jpg_800w_800h_4e',
          'https://imgservice.suning.cn/uimg1/b2c/image/d9O_R0ciikLBbATQx3NHvA.jpg_800w_800h_4e',

        ]
  }
  }
};
</script>

<style>
.el-carousel__item h3 {
  color: #475669;
  font-size: 14px;
  opacity: 0.75;
  line-height: 150px;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}

.carouselImg{
  width: 100%;
  height:100%;
}
</style>